1 package com.iluwatar;
2
3 /**
4 *
5 * Concrete factory.
6 *
7 */
8 public class ElfKingdomFactory implements KingdomFactory {
9
10 public Castle createCastle() {
11 return new ElfCastle();
12 }
13
14 public King createKing() {
15 return new ElfKing();
16 }
17
18 public Army createArmy() {
19 return new ElfArmy();
20 }
21
22 }